<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table {
            width: 90%;
            background: #ccc;
            margin: 10px auto;
            border-collapse: collapse;
            /*border-collapse:collapse合并内外边距
            (去除表格单元格默认的2个像素内外边距*/
        }
        th,td {
            height: 25px;
            line-height: 25px;
            text-align: center;
            border: 1px solid #ccc;
        }
        th {
            background: #eee;
            font-weight: normal;
        }
        tr {
            background: #fff;
        }
        tr:hover {
            background: #cc0;
        }
        td a {
            color: #06f;
            text-decoration: none;
        }
        td a:hover {
            color: #06f;
            text-decoration: underline;
        }
    </style>
</head>
<body>
<table class="table">
    <h1>老师，您收到了本学期的选课名单！快来查看吧</h1>
    <br>
    <br>
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>班级</th>
        <th>专业</th>
        <th>学院</th>
    </tr>
    <tr>
        <td>${student.sid}</td>
        <td>${student.sname }</td>
        <td>${student.ssex}</td>
        <td>${student.classr}</td>
        <td>${student.profession}</td>
        <td>${student.college}</td>
    </tr>

    <input type="text" name="sid" placeholder="请输入公告">
    <input type="submit" class="btn btn-primary" value="发布公告" />
</table>
<h2>老师您好!本学期您的课程为:  总共可以选   人   ,一共选择    人</h2>
</body>
</html>